kind: Endpoints
apiVersion: v1
metadata:
  name: glusterfs-cluster
  namespace: spark-cluster
subsets:
{% for node in groups['gluster'] %}
  - addresses:
      - ip: {{ node }}
    ports:
      - port: 1
{% endfor %}

